<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            width: 800px;
            height: 800px;
            /* background-color: skyblue;
            background-image: url(./images/1.jpg);
            background-repeat: no-repeat;
            background-position: center center; */
            /* 简写 color iamges 是否平铺  背景位置 */
            background: skyblue url(./images/1.jpg) no-repeat center center;
            background-size: 300px 300px;
        }

        p {
            background: url(./images/bg2.png) no-repeat;
        }
    </style>
</head>

<body>
    <div>fwewwfwfefwfefwf</div>
    <p>1</p>
    <img src="./images/1.jpg" alt="">
</body>

</html>